package cn.klaw.module;


/**
 * 最终事件触发模型
 */
public class ProjectEventInstance extends ProjectEvent{

    public ProjectEventInstance() {
    }

    public ProjectEventInstance(String topic, String channel, Object source) {
        super(topic, channel, source);
    }

    public ProjectEventInstance(Long eventId, String topic, String channel, Object source, Integer messageModel, boolean async, boolean afterCommitTransaction) {
        super(eventId, topic, channel, source, messageModel, async, afterCommitTransaction);
    }

    public static ProjectEventInstance parseEvent(ProjectEvent event){
        return new ProjectEventInstance(event.getEventId()
                , event.getToptic(), event.getChannel(), event.getSource()
                , event.getMessageModel(), event.isAsync(), event.isAfterCommitTransaction());
    }


}
